package cn.com.surker.base.strength.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 强度等级容重区间表
 * </p>
 *
 * @author admin
 * @since 2025-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BaseStrengthLevelDosage extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "标识不能为空！", groups = {UpdateStatusGroup.class, UpdateGroup.class})
    private Long id;

    /**
     * 公司ID
     */
    @NotNull(message = "公司标识不能为空！", groups = {AddGroup.class, UpdateGroup.class})
    private Long orgId;

    /**
     * 强度等级ID
     */
    @NotNull(message = "公司标识不能为空！", groups = {AddGroup.class, UpdateGroup.class})
    private Long strengthId;

    /**
     * 强度等级
     */
    private String level;

    /**
     * 容重最小值
     */
    private Double minDosage;

    /**
     * 容重最大值
     */
    private Double maxDosage;

    public BaseStrengthLevelDosage(){}
    public BaseStrengthLevelDosage(Long orgId, Long strengthId, String level, Double minDosage, Double maxDosage) {
        this.orgId = orgId;
        this.strengthId = strengthId;
        this.level = level;
        this.minDosage = minDosage;
        this.maxDosage = maxDosage;
    }
}
